Global Index
HTML5 JS API Index > DOM Tutorials & Specs

HTMLImageElement

Extends HTMLElement.

Properties
DOMString
alt
The alt, src, and srcset IDL attributes must reflect the respective content attributes of the same name.
booleancomplete
DOMString
crossOrigin
The crossOrigin IDL attribute must reflect the crossorigin content attribute, limited to only known values.
unsigned long
height
The IDL attributes width and height must return the rendered width and height of the image, in CSS pixels, if the image is being rendered, and is being rendered to a visual medium; or else the intrinsic width and height of the image, in CSS pixels, if the image is available but not being rendered to a visual medium; or else 0, if the image is not available.
boolean
isMap
The isMap IDL attribute must reflect the ismap content attribute.
unsigned long
naturalHeight
The IDL attributes naturalWidth and naturalHeight must return the intrinsic width and height of the image, in CSS pixels, if the image is available, or else 0. [CSS]
unsigned long
naturalWidth
The IDL attributes naturalWidth and naturalHeight must return the intrinsic width and height of the image, in CSS pixels, if the image is available, or else 0. [CSS]
DOMString
src
The alt, src, and srcset IDL attributes must reflect the respective content attributes of the same name.
DOMString
srcset
The alt, src, and srcset IDL attributes must reflect the respective content attributes of the same name.
DOMString
useMap
The useMap IDL attribute must reflect the usemap content attribute.
unsigned long
width
The IDL attributes width and height must return the rendered width and height of the image, in CSS pixels, if the image is being rendered, and is being rendered to a visual medium; or else the intrinsic width and height of the image, in CSS pixels, if the image is available but not being rendered to a visual medium; or else 0, if the image is not available.
Constructor
Image(optional unsigned long width, optional unsigned long height)
Referenced by
CanvasRenderingContext2DdrawImage(...)
ImageBitmapFactoriescreateImageBitmap(...)